import 'package:dartkit/dartkit.dart';
import 'package:test/test.dart';

void main() {
  test("吨价计算测试", () {
    // 100g正度的纸，吨价1万元
    final sheetPrice = calcSheetPrice(100, 0.859404, 10000);
    expect(sheetPrice, 0.859404);
    // 100g正度的纸，单价1元，吨价应该在11635.9左右
    final tonPrice = calcTonPrice(100, 0.859404, 1);
    expect(tonPrice < 11636, isTrue);
    expect(tonPrice > 11635, isTrue);
  });
}
